*{
         margin: 0;
         padding: 0;
         box-sizing: border-box;
}
/* background*/
body{
         background-image: url("../images/background.png");
         background-size: cover;
         background-position: center;
         background-repeat: no-repeat;
         min-height: 100vh;
         display: flex;
         justify-content: center;
         align-items: center;
         font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
         padding: 20px;
}
/* form*/
form {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    padding: 50px 40px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8),
                0 0 40px rgba(220, 20, 60, 0.3);
    border: 2px solid rgba(220, 20, 60, 0.5);
    max-width: 450px;
    width: 100%;
    direction: rtl;
    animation: slideInUp 0.6s ease-out;
}

form h2 {
    color: #fff;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9),
                 0 0 25px rgba(220, 20, 60, 0.7);
    letter-spacing: 2px;
    font-weight: bold;
}

form label {
    color: #f0f0f0;
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
    margin-top: 20px;
}

form .input,
form input[type="email"],
form input[type="password"] {
    width: 100%;
    padding: 15px 20px;
    margin-top: 8px;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    direction: rtl;
}

form .input::placeholder,
form input[type="email"]::placeholder,
form input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
}

form .input:focus,
form input[type="email"]:focus,
form input[type="password"]:focus {
    border-color: #dc143c;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.4);
    transform: translateY(-2px);
}

.password-group {
    position: relative;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 15px;
}

.password-group input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    direction: rtl;
}

.password-group input:focus {
    border-color: #dc143c;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.4);
    transform: translateY(-2px);
}

.password-group .eye {
    position: absolute;
    left: 15px;
    top: 40%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: all 0.3s ease;
    z-index: 10;
}

.password-group .eye:hover {
    color: #dc143c;
    transform: translateY(-50%) scale(1.2);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    margin-top: 25px;
    background: linear-gradient(135deg, #dc143c, #ff1744);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #ff1744, #ff4567);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.6);
}

.submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(220, 20, 60, 0.5);
}

/* تنسيقات رسائل التحذير */
.div {
    min-height: 25px;
    margin-top: 8px;
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: right;
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: shakeError 0.4s ease-out;
    transition: all 0.3s ease;
}

.div:empty {
    display: none;
}

.div:not(:empty) {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(255, 23, 68, 0.15));
    border: 1px solid rgba(220, 20, 60, 0.6);
    color: #ffcccb;
    box-shadow: 0 3px 10px rgba(220, 20, 60, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#div1:not(:empty)::before,
#div2:not(:empty)::before,
#div3:not(:empty)::before {
    content: "⚠";
    font-size: 1.2rem;
    color: #dc143c;
    font-weight: bold;
}

@keyframes shakeError {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    form {
        padding: 40px 30px;
        max-width: 90%;
    }
    
    form h2 {
        font-size: 2rem;
    }
    
    form label {
        font-size: 1rem;
    }
    
    form .input,
    form input[type="email"],
    form input[type="password"] {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}
